/**
 * Copyright &copy; 2013-2018 青岛数码人网络科技有限公司  All rights reserved.
 */
package cn.net.ecode.elec.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.net.ecode.common.persistence.Page;
import cn.net.ecode.common.service.CrudService;
import cn.net.ecode.elec.entity.ElecAgencyBtype;
import cn.net.ecode.elec.dao.ElecAgencyBtypeDao;

/**
 * 代理企业Service
 * @author xiaodunshan
 * @version 2019-09-28
 */
@Service
@Transactional(readOnly = true)
public class ElecAgencyBtypeService extends CrudService<ElecAgencyBtypeDao, ElecAgencyBtype> {

	/**
	 * 获取单条数据
	 * @param elecAgencyBtype
	 * @return
	 */
	public ElecAgencyBtype get(ElecAgencyBtype elecAgencyBtype) {
		return super.get(elecAgencyBtype);
	}
	
	/**
	 * 查询列表数据
	 * @param elecAgencyBtype
	 * @return
	 */
	public List<ElecAgencyBtype> findList(ElecAgencyBtype elecAgencyBtype) {
		return super.findList(elecAgencyBtype);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param elecAgencyBtype
	 * @return
	 */
	public Page<ElecAgencyBtype> findPage(Page<ElecAgencyBtype> page, ElecAgencyBtype elecAgencyBtype) {
		return super.findPage(page, elecAgencyBtype);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param elecAgencyBtype
	 */
	@Transactional(readOnly = false)
	public void save(ElecAgencyBtype elecAgencyBtype) {
		super.save(elecAgencyBtype);
	}
	
	/**
	 * 删除数据
	 * @param elecAgencyBtype
	 */
	@Transactional(readOnly = false)
	public void delete(ElecAgencyBtype elecAgencyBtype) {
		super.delete(elecAgencyBtype);
	}
	
}